package routers

import (
	"Web-Shop/controllers/admin"
	"github.com/astaxie/beego"
)

func adminRouter() {
	c:=&admin.AdminController{}
	// beego.InsertFilter("/admin/*", beego.BeforeExec, Filter)
	beego.Router("/admin/goodsList", c, "get:GetGoodsList")
	beego.Router("/admin/addGoods", c, "get:GetGoods;post:PostGoods")
	beego.Router("/admin/goodsDetail", c, "get:GetGoodsDetail")
	beego.Router("/admin/goodsEdit", c, "get:GetGoodsEdit;post:PostGoodsEdit")
	beego.Router("/admin/goodsDelete", c, "get:DeleteGoods")
	beego.Router("/admin/type", c, "get:GetType;post:PostType")
	beego.Router("/admin/type/delete", c, "get:DeleteType")
}
